• Resolved joegasper

    (@joegasper)


    I’m looking to scale out the plugin use on multiple WP sites running on a single Windows IIS server. I’m successfully using StarWind’s RAM Disk and an OS boot up script:

    Get-Disk -FriendlyName 'STARWIND RAM DISK' | Initialize-Disk -PartitionStyle GPT -PassThru | New-Partition -DriveLetter V -UseMaximumSize
    Format-Volume -DriveLetter V -FileSystem FAT32 -NewFileSystemLabel 'RAM_DISK' -Confirm:$False
    New-Item -Path 'v:\' -Name 'cache\docket-cache' -ItemType Directory

    It would be great to have Docket Cache create the folder path set in a site’s DOCKET_CACHE_PATH variable if it doesn’t exist. My RAM disk initialization OS boot up script would get the base drive and folder created, and Docket Cache would do the rest of the per WP site folder creation for the cache path. Or if you have other suggestions for scaling out… just looking at being able to let the plugin do the final work instead of updating a boot up script with each new site.

    Thank you for your consideration.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Nawawi Jamili

    (@nawawijamili)

    Hi there,

    By default, Docket Cache will create a cache/docket-cache folder if not exists yet. Seems it failed to create on your defined DOCKET_CACHE_PATH.

    Please share here your DOCKET_CACHE_PATH for debugging purposes.

    Thanks.

    Thread Starter joegasper

    (@joegasper)

    Thank you, I didn’t realize it would create the full path set for DOCKET_CACHE_PATH if it didn’t exist. So, I can now easily define the variable in wp-config.php as below and I’m getting individual paths generated for each site running on the same host – exactly what I was asking for.

    define('DOCKET_CACHE_PATH', 'V:/docket-cache/' . $_SERVER['HTTP_HOST']);

    (It might be helpful to add a note to the documentation that this path will be created if it doesn’t exist.)

    Plugin Author Nawawi Jamili

    (@nawawijamili)

    Noted with thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Enhancement Request: RAM disk use – auto create DOCKET_CACHE_PATH’ is closed to new replies.