Home › Forums › WordPress Plugins › Hide My WP › How replace cache url
- This topic has 15 replies, 3 voices, and was last updated 9 years, 6 months ago by redcar.
-
AuthorPosts
-
July 3, 2015 at 8:02 pm #3345
Hi,
I use WP Fastest-cache
How replace this
wp-content/cache/wpfc-minified/My website:
http://ktwykonczeniawnetrz.pl/Kind regads
July 4, 2015 at 5:42 pm #3361Suman M.Post count: 12478Hi, which version of HMWP are you using? If it’s not the latest version 4.5 then please update.
In Permalinks and urls tab, set “New wp-content path” option to something like “inc”, save the settings and clear cache if any. Do let us know if you still have issue.July 4, 2015 at 6:05 pm #3364This reply has been marked as private.July 4, 2015 at 7:46 pm #3373Suman M.Post count: 12478Those scripts/css with path wp-content/cache/wpfc-minified/ was actually being served from cache. I cleared cache and minified css/js from WP fastest cache and those URLs are gone.
Now to make minification of css/js work, please go through this FAQ –
http://codecanyon.net/item/hide-my-wp-no-one-can-know-you-use-wordpress/4177158/faqs/17298July 5, 2015 at 8:11 am #3378WP Fastest Cache is tricky.
1. I clear cache:
http://prntscr.com/7ozgbs
2. Open website homepage
http://ktwykonczeniawnetrz.pl/
3. View Source code:
http://prntscr.com/7ozgp9
You see. You cant find “wp-content/cache/wpfc-minified/”
4. Refresh browser.
5. View Source Code:
http://prntscr.com/7ozh7x
You can see that is back “wp-content/cache/wpfc-minified/”
What you think about this? What to do?July 5, 2015 at 8:27 am #3379Suman M.Post count: 12478I didn’t see that happening at my end. However, I’ve added following in Replace in HTML option under Replace tools tab and it should replace wp-content with inc.
“wp-content/cache/” => “inc/cache/”July 5, 2015 at 12:38 pm #3381Replace tools dont working:
http://i.imgur.com/MOy9PbC.pngWhat now?
July 6, 2015 at 8:55 am #3388Suman M.Post count: 12478That’s weird!. Please give us some time to look further into this issue.
July 6, 2015 at 8:57 am #3389Ok. I will wait. This is very import for me. Wp Fastest Cache is very good nice will be when hidden my wp will be 100% compatibility with this cache plugin.
July 9, 2015 at 4:37 am #3451Do you have any info about this issue?
July 9, 2015 at 4:30 pm #3464HassanPost count: 955I checked that out!
Unfortunately, WPFC do not provide an API to modify its behavior.
Instead, you need to modify it manually:
1) Open wp-fastest-cache/inc/cache.phpSearch for this line:
$this->createFolder($cachFilePath, $content);and add following RIGHT BEFORE it:
`if (class_exists(‘HideMyWP’)){
$h= new HideMyWP();
$content = $h->global_html_filter($content);
}`2) Now you can use Replace URL (Not HTML because it’s URL) to change those URLs. Use this rule:
wp-content/cache/wpfc-minified/ => new_cache/I hope we can find an easier way in future version of WPFC!
- This reply was modified 9 years, 6 months ago by Hassan.
July 9, 2015 at 4:39 pm #3466I addd this code I cant login to wordpress have blank page.
I add correct code ?
http://prntscr.com/7qqocw- This reply was modified 9 years, 6 months ago by redcar.
July 10, 2015 at 5:12 am #3489Suman M.Post count: 12478July 11, 2015 at 6:46 am #3499Thanks. How hidden this in element?
http://prntscr.com/7rcvrmJuly 11, 2015 at 7:48 am #3501Suman M.Post count: 12478Add the following in Replace in HTML option:
WP Fastest Cache (old)
MyCache (new)If this doesn’t work then you’ll need to manually edit Fastest cache plugin’s code.
In file /wp-fastest-cache/inc/cache.php, replace this function
public function cacheDate($buffer){
.
.
.
}with this
public function cacheDate($buffer){
if($this->isMobile() && class_exists(“WpFcMobileCache”)){
return “”;
}else{
return “”;
}
}- This reply was modified 9 years, 6 months ago by Suman M..
-
AuthorPosts
You must be logged in to reply to this topic.