WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Tonohono
    Member
    Posted 4 years ago #

    Running version 0.8.5.1

    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.

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

  2. Frederick Townes
    Member
    Posted 4 years ago #

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

  3. Tonohono
    Member
    Posted 4 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
    Member
    Posted 4 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