logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: The proper use of mod_disk_cache
Author
clouseau



Joined: 06 May 2015
Posts: 18
Location: Serbia, Subotica

PostPosted: Mon 29 Aug '16 19:59    Post subject: The proper use of mod_disk_cache Reply with quote

I think mod_disk_cache could be a great benefit if it would be documented in more detail.

I have the following configuration:

Code:

<IfModule mod_cache_disk.c>
    CacheRoot /usr/local/apache2/cache/
    CacheDirLevels 2
    CacheDirLength 1

    CacheQuickHandler off

    CacheLock on
    CacheLockPath /tmp/mod_cache-lock
    CacheLockMaxAge 5

    CacheIgnoreHeaders Set-Cookie

        CacheEnable disk /
        CacheHeader on

        CacheDefaultExpire 600
        CacheMaxExpire 86400
        CacheLastModifiedFactor 0.5
</IfModule>


It's a Prestashop site, and this caching works, but the problem is that wherever I click, I get the same page when the cache is active.

Any hings for what am I doing wrong?
The ExpiresDefault is set to A30, but nevertheless, it doesn't have any effect whatever I set.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Wed 07 Sep '16 15:53    Post subject: Reply with quote

You get the same page from cache with any url?
Back to top
clouseau



Joined: 06 May 2015
Posts: 18
Location: Serbia, Subotica

PostPosted: Wed 07 Sep '16 16:41    Post subject: Reply with quote

Yes. After a short while (when the content gets cached I guess), the url changes but the content stays the same.
Back to top


Reply to topic   Topic: The proper use of mod_disk_cache View previous topic :: View next topic
Post new topic   Forum Index -> Apache