1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Wordpress Cahce Homepage Only... How?

Discussion in 'Blogging' started by turbohacker, Nov 13, 2012.

  1. turbohacker

    turbohacker Regular Member

    Joined:
    Jul 27, 2010
    Messages:
    479
    Likes Received:
    127
    I have a wordpress blog with dynamic content. However there is a lot of content on my homepage and I would like to cache this.

    I have tried w3 total cache and I cannot seem to get this working... its rubbish... I have also tried that /+. thing too...
    I have tried wp super cache but there is no setting (that I know of) to cache homepage only, it caches all content and my posts don't show correctly because of this...

    Is there anyway to cache or compress homepage content? I only really need it to refresh once every 30 mins or when a new posts is added.

    Thanks
     
  2. MatthewWoodward

    MatthewWoodward Jr. VIP Jr. VIP Premium Member

    Joined:
    Aug 31, 2012
    Messages:
    992
    Likes Received:
    1,680
    Occupation:
    SEO
    Location:
    UK
    Home Page:
  3. turbohacker

    turbohacker Regular Member

    Joined:
    Jul 27, 2010
    Messages:
    479
    Likes Received:
    127
    Because there is a lot of content on my homepage, the hosting is offshore (russia, due to the content on site) and the homepage loading is slow.

    The posts themselves are dynamic. I have a like locker, which displays content after the like/tweet button has been clicked. Due to the pages being cached, the content isn't displayed to that user once they have liked/tweeted that page...

    I would however like my homepage to be cached... Any ideas how?
     
  4. AnotherOne

    AnotherOne Senior Member

    Joined:
    Nov 28, 2011
    Messages:
    919
    Likes Received:
    187
    Occupation:
    SQA
    Location:
    JMeter & Selenium
    After activating W3 Total Cache go to this page:
    yourdomain.com/wp-admin/admin.php?page=w3tc_pgcache

    Scroll down 'til you see "Never cache the following pages:" option. Add all the pages you don't want to cache (you can use wildcards here).
     
  5. turbohacker

    turbohacker Regular Member

    Joined:
    Jul 27, 2010
    Messages:
    479
    Likes Received:
    127
    So, for example I could use "category/*" ?
     
  6. AnotherOne

    AnotherOne Senior Member

    Joined:
    Nov 28, 2011
    Messages:
    919
    Likes Received:
    187
    Occupation:
    SQA
    Location:
    JMeter & Selenium
    There's an option for not caching feeds, tags etc like 'Cache feeds: site, categories, tags, comments' in Page Cache section of W3 Total Cache. Un-check that option and it'll now cache your categories.

     
    Last edited: Nov 13, 2012
  7. turbohacker

    turbohacker Regular Member

    Joined:
    Jul 27, 2010
    Messages:
    479
    Likes Received:
    127
    That's the thing, I do not want it to cache anything but the homepage...

    so in the "Never cache the following pages:" i should use "category1/*" "category2/*" to ensure that no posts in these categories are cached, correct?
     
  8. julia adam

    julia adam Jr. VIP Jr. VIP Premium Member

    Joined:
    May 29, 2011
    Messages:
    500
    Likes Received:
    25
    Have you tried the search tool, since you are getting any success why not try that?? just a suggestion, no offense.
     
  9. turbohacker

    turbohacker Regular Member

    Joined:
    Jul 27, 2010
    Messages:
    479
    Likes Received:
    127
    Yea I have tried....

    Ironically, the search brings up people having problems with the w3 total cache only caching homepage and not their posts and want to know how to fix it. I can't seem to create that problem.... hence why I asked. Irony... not a big fan :/
     
  10. opiates

    opiates BANNED BANNED

    Joined:
    Feb 16, 2010
    Messages:
    160
    Likes Received:
    47
    Someone hacked the rejected uri feature so it works backwards. It's somewhere on this forum if you search!