[resolved] Plugin method of writing w3-total-cache-config.php forces APC to cache it (4 posts)

  1. Tonohono
    Posted 6 years ago #

    Running version

    When I attempt to exclude w3-total-cache-config.php from being cached by APC, upon altering the plugin's config, the file is cached. Consider the following line:
    apc.filters = 'w3-total-cache-config.php'
    With this line, if I access w3-total-cache-config.php directly, it is not cached. Without this line, as expected, the file is cached when directly accessed.

    However, with the line, w3-total-cache-config.php is cached when I alter the plugin's configuration.

    As I my APC config also includes apc.stat = 0, the fact the file is cached is problematic.

    I should specify: w3-total-cache-config.php gets cached in the system cache, not user.

  2. Frederick Townes
    Posted 6 years ago #

    It is actually NOT a good idea to avoid caching the configuration file.

  3. Tonohono
    Posted 6 years ago #

    Oh I see, it is indeed hit fairly often.

    I suppose I'll find some settings to stick with and just clear the cache if I need to make changes.

    Thanks for the quick response.

  4. Frederick Townes
    Posted 6 years ago #

    In general you do not need to tweak APC whatsoever.

Topic Closed

This topic has been closed to new replies.

About this Topic