Platon Technologies Wordpress Repositories |
|||||
Cluster Commands - instrukcie- nainstalovat plugin stiahnutim ZIP, dalsie aktualizacie uz budu v admine automaticke - do wp-config.php je mozne definovat povolene alebo zakazane prikazy
/** Cluster Commands
* zoznam prikazov je mozne pisat ich celym nazvom, alebo pouzivat variabilne oznacenie pomocou hviezdicky
* prefix (prikaz zacina na "command"): command*
* sufix (prikaz obsahuje "command"): *command*
* postfix (prikaz konci na "command"): *command
*
* zoznam vsetkych prikazov: restart_phpX.Y, restart_nginx, restart_redis_session, restart_redis_cache, restart_varnish, flush_redis_session, flush_redis_cache
*/
// presne vymenovanie konkretne povolenych prikazov
define('CLUSTER_COMMANDS_ALLOWED', array('restart_nginx', 'restart_varnish'));
// povolene prikazy pomocou hviezdicky
define('CLUSTER_COMMANDS_ALLOWED', array('flush_*', '*_varnish'));
// presne vymenovanie zakazanych prikazov
define('CLUSTER_COMMANDS_DISABLED', array('restart_nginx', 'restart_varnish'));
// zakazane prikazy pomocou hviezdicky
define('CLUSTER_COMMANDS_DISABLED', array('restart_php*', '*redis*'));
Platon CDN - instrukcie- nainstalovat plugin stiahnutim ZIP, dalsie aktualizacie uz budu v admine automaticke - do wp-config.php treba pridat
/** Platon CDN
* PLATON_CDN_ENCRYPTION_KEY - nahodny text zostaveny z velkych a malych pismen a cisel, odporucame dlzku 32 znakov
* PLATON_CDN_ENCRYPTION_IV - nahodny text zostaveny z cisel, odporucame dlzku 16 cislic
* ! POZOR ! Zmena hodnoty PLATON_CDN_ENCRYPTION_KEY alebo PLATON_CDN_ENCRYPTION_IV sposobi, ze pristupove hesla na CDN uz nebudu desifrovane
*/
define('PLATON_CDN_ENCRYPTION_KEY', 'q20AEK6L0JKq2XirHD1sXX35BLJp2USk');
define('PLATON_CDN_ENCRYPTION_IV', '2949664814816418');
- nastavit CRON pre pravidelne spustenie backend, odporucame v noci, napriklad o tretej 0 3 * * * /usr/bin/php ~/wordpress/wp-content/plugins/platon-cdn/backend.php - pomocnik backendovej casti pre rucne spustenie Usage: php backend.php [options] Options: -h, --help Show this help -v, --version Show version of this plugin aj MD5 HASH of this backend script -i, --disable-steps=[NUMBERS] Disable steps, e.g. 123 to disable 1st, 2nd and 3rd step Steps: 1 - find local image, 2 - upload to CDN, 3 - check on CDN, 5 - update posts, 4 - update metadata, 6 - delete local files -d, --date-like=[DATE] Date like string -c, --count=[NUMBER] Count of images to process -f, --fork=[NUMBER] Use fork for parallel processing, number is max count of processes -t, --to-time=[DATETIME] Date and time for max time of processing -m, --max-time=[SECONDS] Maximum seconds for processing -p, --post-processing=[PREFIX] Prefix after upload URL for post-processing in posts, like step 5 -u, --unselect-no-files=[DATE] Remove #no-files from images meta-data, parameter is like date -s, --simulation Simulation mode -r, --run-in-cron Special mode for run in CRON -l, --coloured Coloured output --test Run tests for debug Example: # process 5 images from year 2023 php backend.php -d=2023-% -c=5 # process without step 2, 5 and 6 for month June 2024 with coloured output php backend.php -i=256 -d=2024-06% -l # post-processing for replace URL in posts for month June 2024 with coloured output php backend.php -p=2024/06 -l # unselect images with flags #no-files in step 3 in standard process for month June 2024 with coloured output php backend.php -u=2024-06% -l Platon Plugin Checker - instrukcie- nainstalovat plugin stiahnutim ZIP, dalsie aktualizacie uz budu v admine automaticke - nastavit CRON pre pravidelne spustenie backend, odporucame v noci, napriklad o tretej 0 3 * * * /usr/bin/php ~/wordpress/wp-content/plugins/platon-plugin-checker/backend.php - pomocnik backendovej casti pre rucne spustenie Usage: php backend.php [options] Options: -h, --help Show this help -v, --version Show version of this plugin aj MD5 HASH of this backend script -s, --simulation Simulation mode -r, --run-in-cron Special mode for run in CRON -l, --coloured Coloured output -t, --test Run tests for debug Example: # standard process php backend.php |
|||||
|
Platon Webhosting | Platon Technologies, s.r.o. | Metafox CMS | |||||