Home Forums WordPress Plugins Hide My WP How replace cache url

This topic is: resolved
Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #3345
    redcar
    Active
    Post count: 23

    Hi,

    I use WP Fastest-cache

    How replace this
    wp-content/cache/wpfc-minified/

    My website:
    http://ktwykonczeniawnetrz.pl/

    Kind regads

    #3361
    Suman M.
    Post count: 12478

    Hi, 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.

    #3364
    redcar
    Active
    Post count: 23
    This reply has been marked as private.
    #3373
    Suman M.
    Post count: 12478

    Those 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/17298

    #3378
    redcar
    Active
    Post count: 23

    WP 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?

    #3379
    Suman M.
    Post count: 12478

    I 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/”

    #3381
    redcar
    Active
    Post count: 23

    Replace tools dont working:
    http://i.imgur.com/MOy9PbC.png

    What now?

    #3388
    Suman M.
    Post count: 12478

    That’s weird!. Please give us some time to look further into this issue.

    #3389
    redcar
    Active
    Post count: 23

    Ok. 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.

    #3451
    redcar
    Active
    Post count: 23

    Do you have any info about this issue?

    #3464
    Hassan
    Post count: 955

    I 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.php

    Search 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.
    #3466
    redcar
    Active
    Post count: 23

    I 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.
    #3489
    Suman M.
    Post count: 12478

    Hi, add the code in the attached txt file (do not add single quotes)

    • This reply was modified 9 years, 6 months ago by Suman M..
    Attachments:
    You must be logged in to view attached files.
    #3499
    redcar
    Active
    Post count: 23

    Thanks. How hidden this in element?
    http://prntscr.com/7rcvrm

    #3501
    Suman M.
    Post count: 12478

    Add 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..
Viewing 15 posts - 1 through 15 (of 16 total)

You must be logged in to reply to this topic.