Title: Enhancement Request: RAM disk use &#8211; auto create DOCKET_CACHE_PATH
Last modified: June 6, 2023

---

# Enhancement Request: RAM disk use – auto create DOCKET_CACHE_PATH

 *  Resolved [joegasper](https://wordpress.org/support/users/joegasper/)
 * (@joegasper)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/enhancement-request-ram-disk-use-auto-create-docket_cache_path/)
 * 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:$FalseNew-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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fenhancement-request-ram-disk-use-auto-create-docket_cache_path%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Nawawi Jamili](https://wordpress.org/support/users/nawawijamili/)
 * (@nawawijamili)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/enhancement-request-ram-disk-use-auto-create-docket_cache_path/#post-16800882)
 * 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](https://wordpress.org/support/users/joegasper/)
 * (@joegasper)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/enhancement-request-ram-disk-use-auto-create-docket_cache_path/#post-16801387)
 * 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](https://docs.docketcache.com/constants#docket_cache_path)
   that this path will be created if it doesn’t exist.)
 *  Plugin Author [Nawawi Jamili](https://wordpress.org/support/users/nawawijamili/)
 * (@nawawijamili)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/enhancement-request-ram-disk-use-auto-create-docket_cache_path/#post-16805755)
 * 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.

 * ![](https://ps.w.org/docket-cache/assets/icon-256x256.png?rev=2425893)
 * [Docket Cache - Object Cache Accelerator](https://wordpress.org/plugins/docket-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/docket-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/docket-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/docket-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/docket-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/docket-cache/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Nawawi Jamili](https://wordpress.org/support/users/nawawijamili/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/enhancement-request-ram-disk-use-auto-create-docket_cache_path/#post-16805755)
 * Status: resolved