Περιγραφή
Ένας εύκολος τρόπος παρουσίασης για τα εφημερεύοντα / διανυκτερεύοντα φαρμακεία της Κύπρου ανά πόλη (Λευκωσία, Λεμεσός, Λάρνακα, Παραλίμνι, Πάφος)
Παράδειγμα
[cypharm show_title=false]
Περισσότερες επιλογές
Το πρόσθετο υποστηρίζει τις πιο κάτω παραμέτρους:
city
: Επιλογή μιας Κυπριακής πόλης (στα Αγγλικά) μεταξύ των Nicosia, Limassol, Larnaca, Paralimni and Paphos (defaults toPaphos
)title
: Γράψτε τον τίτλο που επιθυμείτε (defaults tofalse
)
Performance Features
- Caching: API responses are cached for 12 hours to improve performance and reduce API calls
- Cache Management: Admin interface to clear cache when needed
- Smart Loading: Only makes API calls when cached data is expired or doesn’t exist
Developer Features
- Customizable Cache Duration: Use the
cypharm_cache_duration
filter to modify cache duration - Cache Management: Programmatic cache clearing with
clear_cache()
method - Extensible: Easy to extend with additional caching features
Customizing Cache Duration
You can customize the cache duration by adding the following code to your theme’s functions.php
file:
Set cache to 24 hours:
add_filter( 'cypharm_cache_duration', function() {
return 86400; // 24 hours in seconds
});
Set cache to 1 hour:
add_filter( 'cypharm_cache_duration', function() {
return 3600; // 1 hour in seconds
});
Set cache to 30 minutes:
add_filter( 'cypharm_cache_duration', function() {
return 1800; // 30 minutes in seconds
});
Disable caching (not recommended for production):
add_filter( 'cypharm_cache_duration', function() {
return 0; // No caching
});
Using a named function (recommended):
function my_custom_cypharm_cache_duration() {
return 7200; // 2 hours in seconds
}
add_filter( 'cypharm_cache_duration', 'my_custom_cypharm_cache_duration' );
Συντελεστές
Κριτικές
Δεν υπάρχουν αξιολογήσεις για αυτό το πρόσθετο.
Συνεισφέροντες & Προγραμματιστές
“Φαρμακεία Κύπρου” είναι λογισμικό ανοιχτού κώδικα. Οι παρακάτω έχουν συνεισφέρει στη δημιουργία του.
ΣυντελεστέςΤο “Φαρμακεία Κύπρου” έχει μεταφραστεί σε 1 γλώσσα. Ευχαριστούμε τους μεταφραστές για τις συνεισφορές τους.
Μεταφράστε το “Φαρμακεία Κύπρου” στην γλώσσα σας.
Ενδιαφέρεστε για την ανάπτυξη;
Περιηγηθείτε στον κώδικα, ανατρέξτε στο αποθετήριο SVN ή εγγραφείτε στο αρχείο καταγραφής αλλαγών ανάπτυξης μέσω RSS .
Σύνοψη αλλαγών
1.2.8
- UX: Added “Settings” link to plugin action links for easy access
- UX: Improved admin interface with better code examples
1.2.7
- Performance: Added intelligent caching system to reduce API calls
- Performance: Cache pharmacy data for 12 hours to improve page load times
- Admin: Added cache management interface in Settings
- Developer: Added filter hook to customize cache duration
- Developer: Added cache clearing functionality for plugin activation/deactivation
- Security: Maintained all previous security improvements
1.2.6
- Security: Fixed XSS vulnerabilities by properly escaping all user data from external APIs
- Security: Added input validation for shortcode parameters to prevent invalid city values
- Security: Improved error handling for API responses with proper JSON validation
- Security: Added SSL verification to prevent man-in-the-middle attacks
- Security: Added proper user-agent headers for API requests
- Security: Enhanced error logging for debugging API issues
1.2.5
- Fix: data.gov schema was changed.
1.2.4
- Fix: Link to Google Maps is not working.
1.2.3
- Fix: data.gov schema uses multiple date formats.
1.2.2
- Fix: data.gov schema was changed.
1.2.1
- Μικροδιόρθωση: Προσθήκη ενός filter hook.
- Μικροδιόρθωση: Προσθήκη επιπρόσθετων ελέγχων για αποφυγή ειδοποιήσεων στον κώδικα
1.2.0
- Τροποποίηση: Νέα διαμόρφωση κώδικα
- Νέο: Το πρόσθετο είναι έτοιμο για μεταγλώττιση!
1.1.2
- Διόρθωση: Λάθος επίθετο
1.1.1
- Διόρθωση: Είναι λάθος οι κοινότητες και τα τηλέφωνα επικοινωνίας
1.1.0
- Σύνδεση με την τοποθεσία των φαρμακείων της Πάφου στο Google Maps
1.0.0
- Πρώτη Έκδοση!